package com.wzy.designpattern.creational.builder;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-15  18:14
 */

public class Coach {
    private CourseBuilder courseBuilder;

    public void setCourseBuilder(CourseBuilder courseBuilder) {
        this.courseBuilder = courseBuilder;
    }

    public Course makeCourse(String courseName, String PPT, String courseVideo, String Article,
                             String courseQA) {
        this.courseBuilder.buildCourseName(courseName);
        this.courseBuilder.buildCoursePPt(PPT);
        this.courseBuilder.buildCourseVideo(courseVideo);
        this.courseBuilder.buildCourseArticle(Article);
        this.courseBuilder.buildCourseQA(courseQA);
        return this.courseBuilder.makeCourse();

    }
}
